package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.OccupationDao;
import com.qc.entity.OccupationEntity;
import com.qc.service.OccupationService;

@SuppressWarnings("rawtypes")
@Service("occupationService")
public class OccupationServiceImpl implements OccupationService{

    @Resource(name="occupationDao")
    private OccupationDao occupationDao;
    
    @Override
    public int getListOccupationCount(String name) {

        return occupationDao.getListOccupationCount(name);
    }

	@Override
    public List getAllOccupation(String name, int pageNo,int pageSize) {

        return occupationDao.getAllOccupation(name, pageNo, pageSize);
    }

    @Override
    public int saveOccupation(OccupationEntity occupationEntity) {

        return occupationDao.saveOccupation(occupationEntity);
    }

    @Override
    public int deleteOccupationId(long id) {

        return occupationDao.deleteOccupationId(id);
    }

    @Override
    public int updateOccupationId(OccupationEntity occupationEntity) {

        return occupationDao.updateOccupationId(occupationEntity);
    }

}
